home *** CD-ROM | disk | FTP | other *** search
- ;
- ;-----------------------------------------------------------------------;
- ; ;
- ; Installer script for AmigaIGC ;
- ; ;
- ; To install AmigaIGC type "Installer Install.Me AmigaIGC" in the CLI ;
- ; or double-click on the Install.Me icon. ;
- ; ;
- ;-----------------------------------------------------------------------;
- ;
- ; Check if OS version is 2.0+
- ;
- (set os-2.0 (>= (/ (getversion) 65536) 36))
- (debug "OS version is" (if os-2.0 "2.0+" "1.3"))
- ;
- ; Get the destination directory
- ;
- (set @default-dest (askdir
- (prompt "Where do you want to install AmigaIGC?")
- (help @askdir-help)
- (default "SYS:AmigaIGC")
- (newpath)
- )
- )
- ;
- ; Install AmigaIGC
- ;
- (copyfiles
- (prompt "Installing AmigaIGC...")
- (help @copyfiles-help)
- (source "AmigaIGC")
- (dest @default-dest)
- (confirm)
- )
- ;
- ; Copy AmigaIGC.cfg to S:.
- ;
- ; Because the user may not want to overwrite his .cfg file with the
- ; default one, this must be confirmed.
- ;
- (if (exists "S:AmigaIGC.cfg")
- (askbool
- (prompt "You already have the file S:AmigaIGC.cfg installed. "
- "You should edit it and add any new variables.")
- (help @askbool-help)
- (choices "Proceed" "Proceed")
- )
- (copyfiles
- (prompt "Copying AmigaIGC.cfg to S:...")
- (help @copyfiles-help)
- (source "AmigaIGC.cfg")
- (dest "S:")
- )
- )
- ;
- ; Install the appropriate reqtools.library
- ;
- (copylib
- (prompt "Installing reqtools.library...")
- (help @copylib-help)
- (source (if os-2.0 "libs20/reqtools.library" "libs13/reqtools.library"))
- (dest "LIBS:")
- (confirm)
- )
- ;
- ; Install upd
- ;
- (if (exists "LIBS:rexxsyslib.library")
- (
- (if (not (exists "SYS:System/upd"))
- (copyfiles
- (prompt "Installing upd...")
- (help @copyfiles-help)
- (source "upd/upd")
- (dest "SYS:System")
- (confirm)
- )
- )
- (if (not (exists "SYS:System/Sounds/AmigaIGC"))
- (copyfiles
- (prompt "Installing sound files...")
- (help @copyfiles-help)
- (source "upd/sounds")
- (dest "SYS:System/Sounds")
- (all)
- (confirm)
- )
- )
- (startup @app-name
- (prompt "Editing S:user-startup and possibly S:startup-sequence to start upd when the system is booted...")
- (help @startup-help)
- (command "run SYS:System/upd")
- )
- )
- )
- ;
- ; Install amigaguide.library
- ;
- (copylib
- (prompt "Installing amigaguide.library...")
- (help @copylib-help)
- (source (if os-2.0 "libs20/amigaguide.library" "libs13/amigaguide.library"))
- (dest "LIBS:")
- (confirm)
- )
-